import type { loginResult, prarms } from '@/types/login';
import http from '@/utils/http';

export const postWxLogin = (data: prarms) => {

    return http<loginResult>({
        method: 'POST',
        url: '/login/wxMin',
        data,
    })
}

export const postWxLoginSimple = (phoneNumber: string) => {
    return http<loginResult>({
        method: 'POST',
        url: '/login/wxMin/simple',
        data: { phoneNumber }
    })
}